<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
  <head>
    <title>Permission Granted</title>
  </head>
  <body>
    <h1>Permission Granted</h1>
    The demo application can now <a href="/sign/poco">access your Google Contacts!</a>.
    
    <% if (request.getAttribute("error_code") != null) { %>
      Error code: <c:out value="${error_code}" />
    <% } %>
    
    <% if (request.getAttribute("error_text") != null) { %>
      Error text:
<pre>
<c:out value="${error_text}" />
</pre>
    <% } %>
    
    <% if (request.getAttribute("all_data") != null) { %>
<c:out value="${all_data}" />
    <% } %>

  </body>
</html>